<?php

/**
 * Telefono form.
 *
 * @package    blackDrums
 * @subpackage form
 * @author     your name here
 */
class TelefonoForm extends BaseTelefonoForm {
    public function configure() {
        unset(
                $this['idClienteNatural'], $this['idContactoEmpresa']
        );

        $this->setValidators(array(
                'idTelefono'        => new sfValidatorPropelChoice(array('model' => 'Telefono', 'column' => 'idTelefono', 'required' => false)),
                'codigoArea'        => new sfValidatorNumber(array('min' => -2147483648, 'max' => 2147483647),array ('required' => 'Por favor indique el codigo de area')),
                'numero'            => new sfValidatorNumber(array('min' => -2147483648, 'max' => 2147483647),array ('required' => 'Por favor indique el numero de telefono')),
                'idClienteNatural'  => new sfValidatorPropelChoice(array('model' => 'ClienteNatural', 'column' => 'cedula', 'required' => false)),
                'idContactoEmpresa' => new sfValidatorPropelChoice(array('model' => 'ContactoEmpresa', 'column' => 'cedula', 'required' => false)),
        ));

    }
}
